package com.example.mytayunapi.Controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@CrossOrigin
@Controller
@RequestMapping("/alipay")
public class RedirectController {

    @GetMapping("/return")
    public String handlePaymentReturn() {
        System.out.println("Redirecting to shop-buying page...");
        // 确保这里的URL是前端页面实际可访问的URL
        return "redirect:http://localhost:63342/tayun-tayun/tayun-user-end/html/shop-buying.html";
    }
}
